public struct Number
{
    public Number(int x, int y, int z) : this()
    {
        this.x = x;
        this.y = y;
        this.z = z;
        if (sorted)
        {
            return;
        }
        SortThreeNumbers(ref this.x,ref this.y ,ref this.z);
        sorted = true;
    }

    private bool sorted;
    public int x, y, z;


    public override string ToString()
    {
        return $"{x}{y}{z}";
    }

    void SortThreeNumbers(ref int a, ref int b, ref int c)
    {
        if (a > b) (a, b) = (b, a);
        if (b > c) (b, c) = (c, b);
        if (a > b) (a, b) = (b, a);
    }
}